package com.s3.khospitalds.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.s3.khospitalds.entity.Complaints;
import com.s3.khospitalds.mapper.ComplaintsMapper;
import com.s3.khospitalds.service.ComplaintsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author hlq
 * @version 1.0
 * @Description
 * @date 2025/3/4 14:49
 */
@Service
public class ComplaintsServiceImpl extends ServiceImpl<ComplaintsMapper, Complaints> implements ComplaintsService {
    @Autowired
    private ComplaintsMapper complaintsMapper;

    @Override
    public int insert(Date date, String phone, String name, String content, String department, String way) {
        return complaintsMapper.insert(date, phone, name, content, department, way);
    }

    @Override
    public int updateByReply(String results, int id) {
        return complaintsMapper.updateByReply(results, id);
    }
}
